package com.xuecheng.content.api;

import com.xuecheng.content.service.CourseAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "课程信息审核接口",tags = "课程信息审核接口")
@Slf4j
@RestController
public class CourseAuditController {

    @Autowired
    private CourseAuditService  courseAuditService;

    @ApiOperation("提交课程审核")
    @PostMapping("courseaudit/commit/{courseId}")
    public void commitForAudit(@PathVariable Long courseId){
        courseAuditService.commitForAudit(courseId);
    }
}
